/*
 * Project: apb-common
 *
 * File Created at 2018年7月30日
 *
 * Copyright 2016 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.chang.common.resultcode;

/**
 * 响应码
 *
 * @author chenjingjing
 * @ClassName StatusCode
 * @Description
 * @date 2021年2月2日
 */
public enum StatusCode {
    //公共
    SUCCESS(200, "成功"), // 与前台页面的响应
    FAILURE(403, "错误"),
    PARAMERROR(400, "参数错误"),
    AUTHFAILURE(401, "接口认证失败"),
    HEDUN_CHECK_FAILURE(402, "检测到非法信息，请重新输入"),
    NO_DEVICE_AUTHORITY(403, "设备无操作权限"),
    SYSTEMERROR(500, "抱歉，系统升级中，请稍后再试"),

    //分布式锁
    SYSTEM_BUSY(501, "系统繁忙");


    private int code;

    private String msg;

    private StatusCode(int errorCode, String errorMsg) {
        code = errorCode;
        msg = errorMsg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
